import SwiftUI
import Shared

@main
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Call your KMP initialization code here
        let initializer = Initializer(launchOptions: launchOptions)
        initializer.initialize()

        window = UIWindow(frame: UIScreen.main.bounds)
        window?.rootViewController = MainViewControllerKt.MainViewController()
        window?.makeKeyAndVisible()

        // Continue with any other native iOS AppDelegate setup
        return true
    }

}